home *** CD-ROM | disk | FTP | other *** search
- Path: midland.co.nz!usenet
- From: jsev@midland.co.nz (John Severinsen)
- Newsgroups: comp.sys.amiga.misc
- Subject: Re: AmigaOS 4.x features
- Date: 2 Apr 1996 09:44:27 GMT
- Organization: Midland Internet Limited, Network Services
- Message-ID: <3139.6666T726T2158@midland.co.nz>
- References: <4j7ein$a6v@B1FF.mindspring.com> <4jc7g1$ipq@news.rhrz.uni-bonn.de>
- <4jfm8i$b5n@B1FF.mindspring.com> <4jgc6q$a61@reuter.cse.ogi.edu> <4jkg5j$dva@B1FF.mindspring.com>
- NNTP-Posting-Host: jsev.midland.co.nz
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
- On 31-Mar-96 11:29:55 (Msg ID: <4jkg5j$dva@B1FF.mindspring.com>), Charlie
- Moody wrote:
- --
-
- >: >: : - adoption of *nix pattern-matching; it stands head, shoulders, and
- >: >: : ankles above the original Amiga 'system' in power, simplicity, and
- >: >: : flexibility.
-
- >: I'll grant that * is easier than #?, but the Amiga pattern matching
- >: is more powerful than traditional UNIX globbing. As was pointed out
- >: earlier, you can always enable a UNIX-ish * by using a utility like
- >: wildstar.
-
- >It may be *as* powerful, but not moreso (and what the heck is 'UNIX
- >globbing'?), and certainly not as well thought out. And that's the point
- >about enabling the '*': it's easy, and not nearly as useful as it would
- >be in context.
-
- What is the problem with using "#?" instead of "*" ???? It's only an extra
- character after all! Besides, the "#" operator can be used with other
- characters as well (e.g. ...#a...) which is certainly better thought out than
- other OS's.
-
- >That's not "more flexible"; it's not "more powerful"; and it sure as
- >h*ll ain't any easier. Isn't it basic common sense to avoid re-inventing
- >the wheel *whenever* possible?
-
-
- >: For example, "dir sys:(a|b|c|e)#?".
-
- > dir sys:[a-e]*
-
- He was showing you an alternative for pre2.0 OS's. dir SYS:[a-e]#? does the
- same under AmigaDos. This is no more cumbersome nor less powerful than the
- UNIX system.
-
- >; The main problem,
- >: if you want to call it a problem, is that it's different. It also can be a
- >: little more awkward to use for certain patterns, but it always can get the
- >: job done.
-
- >The fact that the kludge can be worked around does nothing to redeem the
- >kludge. It's still bad design with no significant benefit from making
- >the sacrifices, and it should be thrown overboard at the first opportunity.
-
- What kludge is this??? The Amiga has always used the "#?" operator for
- wildcards. It does the same thing as an "*" in UNIX.
-
-
-
- >: I'd certainly take the functionality of the # operator any day
- >: over the UNIX * operator (provided I've got a match-any-character operator
- >: to go with it.)
-
- >You'd gladly throw away the match-any-character option, provided you've
- >got a match-any-character option to replace it???
-
- From my (admittedly rather limited) experience with UNIX pattern matching, the
- AmigaDos system is more powerful (I suggest you read your manuals). You have
- the following wildcards in AmigaDOS:
-
- # - Match any number the following character
- ? - Match any single character
- () - Group things together
- | - Like a logical OR
- [] - Character ranging
- ~ - Like a logical NOT
- % - Match the NULL string
-
- I think that's all but with these I have never come across anything that can't
- be specifically matched.
-
-
-
-
-
- --
- /// * |One Ring to rule them all, One Ring to find them
- __/// ** |One Ring to bring them all and in the darkness bind them
- \XX/ * *miga |In the land of Mordor where Shadows lie
- |
- John Severinsen |- J.R.R. Tolkien
- jsev@midland.co.nz |
- <tsb>Thor 2.22, 02-Apr-96 11:32:58
-
- When the cat's away, there's less hair on the furniture
-
-